home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-19 / chgle10.zip / SAMPLE2.GLE < prev    next >
Text File  |  1991-12-19  |  1KB  |  62 lines

  1.  
  2. size 18 24 
  3. set font psc
  4. set hei .3
  5. amove .2 .3
  6. text └²: 2
  7.  
  8. !----------------------------------------------------------------------------
  9. ! Error Bars 
  10. amove 0 14
  11. begin graph
  12.     size 18 10
  13.     xtitle "X ╫°▒Ω╓ß"
  14.     title "╬≤ ▓ε ╟· ╧▀ ╩╛ ╥Γ ═╝"
  15.     yaxis min 0 max 30
  16.     let d1 = (sin(x)+1)*10+1 from 1 to 9 step 1
  17.     let d2 = (cos(x)+1)*10+1 from 1.5 to 9.5 step 1
  18.     dn lstyle 2
  19.     d1 marker circle errup 30% errdown 1 
  20.     d2 marker fsquare  err 30% errwidth .1 
  21. end graph
  22. !----------------------------------------------------------------------------
  23. ! Silly axis settings
  24. amove 0 5
  25. begin graph
  26.     size 18 9
  27.     title "The main title"
  28.     xaxis min 0 max 9 nofirst nolast
  29.     xaxis hei .6 nticks 10  dsubticks .2
  30.     xaxis lwidth .2 color red
  31.     yaxis log min 1 max 10 lwidth .1
  32.     y2axis  min 3 max 3000
  33.     y2side color blue lwidth 0 
  34.     y2ticks length .9 lwidth 0 
  35.     y2title "╢╘  ╩²  ╫°  ▒Ω (log)" hei .2
  36.     x2axis off
  37.     y2labels on
  38.     let d1 = sin(x)*4+5 from 0 to 9 
  39.     dn line
  40. end graph
  41. !----------------------------------------------------------------------------
  42. ! Two Bar Graphs 
  43. amove 0 0
  44. begin graph
  45.     SIZE 9 5
  46.     Title "╓▒ ╖╜ ═╝   └²:1"
  47.     data test.dat
  48.     bar d1,d2 fill green,blue 
  49.     fill x1,d1 color grey10
  50. end graph
  51. rmove 9 0
  52. begin graph
  53.     SIZE 9 5
  54.     Title "╓▒ ╖╜ ═╝   └²:2"
  55.     data test.dat
  56.     let d3 = d1+2
  57.     let d4 = d2*1.2
  58.     yaxis min 0 max 20
  59.     bar d1,d2 fill grey10,grey50 width .3 dist .3
  60.     bar d3,d4 from d1,d2 fill grey20,grey90 width .3 dist .3
  61. end graph
  62.